package com.zh.zhbootcommon.config.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 描述: JWT验证Token
 *
 * @author: yanglin
 * @Date: 2021-08-04-17:01
 * @Version: 1.0
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface VerifyToken {

    /**
     * 默认验证
     *
     * @return
     */
    boolean required() default true;

    /**
     * 验证Token类型
     * 0-WEB
     * 1-MP
     *
     * @return
     */
    int type() default 0;

}
